{* 
//////
//    @version [ Masterton ]
//    @package hwdVideoShare
//    @copyright (C) 2007 - 2009 Highwood Design
//    @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
//////
//    hwdVideoShare Template System:::This template system uses the Smarty Template Engine. 
//    For full documentation, including syntax usage please refer to http://www.smarty.net 
//    or our website at http://www.hwdmediashare.co.uk   
//////
//    This file generates the display for the video player page.
//////
//    VARIABLES AVAILBLE IN THIS TEMPLATE FILE:                                        
//    -- TO BE ADDED
//////
*}

{include file='header.tpl'}

<div class="sic-container">
  
  <div id="sic-right" class="sic-right">

    <div class="standard-right">

      <div style="float:right;"><div class="padding">{$videoplayer->avatar}</div></div>
      {if $print_nextprev}
        <div class="padding">{$videoplayer->nextprev}</div>
      {/if}
      {if $print_videourl}
          <div class="padding"><form name="vlink"><div>{$smarty.const._HWDVIDS_TITLE_PERMALINK}</div><input type="text" value="{$videoplayer->videourl}" name="vlink" /></form></div>
      {/if}
      {if $print_embedcode}
          <div class="padding"><form name="elink"><div>{$smarty.const._HWDVIDS_INFO_VIDEMBEDCODE}</div><input type="text" value="{$videoplayer->embedcode}" name="elink" /></form></div>
      {/if}
      
      <div style="clear:both;"></div>
    </div>

    {if $print_ads}{if $advert4}<div class="standard-right"><div class="padding"><div id="hwdadverts-nopadding">{$advert4}</div></div></div>{/if}{/if}
    
    {if $print_uservideolist}
    <div class="standard-right">
    <div class="padding">
      <h2>{$smarty.const._HWDVIDS_TITLE_MOREBYUSR} {$videoplayer->uploader}</h2>
    </div>
      <div class="xmllist">
        <div class="box">
          {foreach name=outer item=data from=$userlist}
	  {include file="video_list_simple.tpl"}
	  <div style="clear:both;"></div>
          {/foreach}
        </div>
      </div>
    </div>
    {/if}
    
    {if $print_relatedlist}
    <div class="standard-right">
    <div class="padding">
      <h2>{$smarty.const._HWDVIDS_RELATED}</h2>
    </div>
      <div class="xmllist">
        <div class="box">
          {foreach name=outer item=data from=$listrelated}
	  {include file="video_list_simple.tpl"}
	  <div style="clear:both;"></div>
          {/foreach}
        </div>
      </div>
    </div>
    {/if}

    {if $print_categoryvideolist}
    <div class="standard-right">
    <div class="padding">
      <h2>{$smarty.const._HWDVIDS_MORECATVIDS}</h2>
    </div>
      <div class="xmllist">
        <div class="box">
          {foreach name=outer item=data from=$categoryvideolist}
	  {include file="video_list_simple.tpl"}
	  <div style="clear:both;"></div>
          {/foreach}
        </div>
      </div>
    </div>
    {/if}
    
  </div>
  
  <div class="sic-center">
  
    <div class="standard">
    <div class="padding">
      <h2>{$videoplayer->title} {$videoplayer->editvideo} {$videoplayer->deletevideo}</h2>
      <center>{$videoplayer->player}</center>
    </div>
    </div>

    <div class="standard">
    <div class="padding">
          <div style="float:right;">
            <div>{$videoplayer->switchquality}</div>
            <div>{$videoplayer->downloadoriginal}</div>
            <div>{$videoplayer->vieworiginal}</div>
            <div>{$videoplayer->downloadflv}</div>
            <div id="addremfav">{$videoplayer->favourties}</div>
            <div>{$videoplayer->reportmedia}</div>
          </div>
          {$videoplayer->ratingsystem}
          <div style="clear:both;"></div>
	    <div id="ajaxresponse"></div>
          <div style="clear:both;"></div>	
    </div>
    </div>

    <div class="standard">
    <div class="padding">
	  {$videoplayer->socialbmlinks}
	  {if $print_addtogroup}{$videoplayer->addtogroup}<div id="add2groupresponse"></div>{/if}
    </div>
    </div>

    {if $print_ads}{if $advert3}<div class="standard"><div class="padding"><div id="hwdadverts-nopadding">{$advert3}</div></div></div>{/if}{/if}

    <div class="standard">
    <div class="padding">
	  {if $print_description}<div class="padding"><strong>{$smarty.const._HWDVIDS_DESC}</strong><br /><p id="truncateMe">{$videoplayer->description}</p></div>{/if}
	  
	  {if $print_tags}<div class="padding"><strong>{$smarty.const._HWDVIDS_TAGS}</strong><br />{$videoplayer->tags}</div>{/if}
	  <div class="padding">{$videoplayer->category}</div>
	  <div class="padding"><!--{$videoplayer->views}--></div>
	  <div class="padding"><!--{$videoplayer->upload_date}--></div>
    </div>
    </div>

  </div>
</div>


<div style="clear:both;"></div>
{if $print_comments}
    <div class="standard">
    <div class="padding">
      <h2>{$smarty.const._HWDVIDS_TITLE_VIDCOMMS}</h2>
    </div>
      {$videoplayer->comments}
    </div>
{/if} 
<div style="clear:both;"></div>

{literal}
<script language='javascript' type='text/javascript'>
	var fullWidth = document.getElementById("hwdvids").offsetWidth;
	var sideWidth = fullWidth - {/literal}{$flvplay_width}{literal};
	document.getElementById("sic-right").style.width = sideWidth + "px";
</script>
{/literal}

{include file='footer.tpl'}
